import request from '@/utils/request' // 导入封装请求的js文件

export function selectMarketLocation (params) {
  return request({
    url: '/UmsAdminConfig/selectSystemConfigInfo',
    method: 'get',
    params:params
  })
}
//新增市场
export function saveMarketLocation (params) {
    return request({
      url: '/UmsAdminConfig/saveSystemConfigInfo',
      method: 'put',
      params:params
    })
  }
  //编辑市场
  export function updateMarketLocation (params) {
    return request({
      url: '/UmsAdminConfig/updateSystemConfigInfo',
      method: 'PUT',
      params:params
    })
  }
  //删除市场
  export function deleteMarketLocation (params) {
    return request({
      url: '/UmsAdminConfig/deleteSystemConfigInfo',
      method: 'DELETE',
      params:params
    })
  }
  //获取首页公告
  export function selectSystemSettingInfoByName (params) {
    return request({
      url: '/UmsAdminConfig/selectSystemSettingInfoByName',
      method: 'GET',
      params:params
    })
  }
  //修改公告信息
  export function updateSystemSettingInfo (params) {
    return request({
      url: '/UmsAdminConfig/updateSystemSettingInfo',
      method: 'PUT',
      data:params
    })
  }